#include "stdafx.h"
#include "DialogueManager.h"
#include "DialogueBox.h"
#include "DialogueSequence.h"
#include "Dialogue.h"
#include "TalkingDialogueBox.h"
#include "BMPText.h"

DialogueManager::DialogueManager()
{
	npc_1_part_1 = NULL;
	npc_1_part_2 = NULL;
	npc_2_part_1 = NULL;
	npc_3_part_1 = NULL;
}

DialogueManager::~DialogueManager()
{

}

void DialogueManager::CreateAllDialogue()
{
	/*
	NPC 1 (Part 1): If you'd like to purchase spells, I need you to do me a favor. I need you to kill NPC 2!

	NPC 2 (Part 1): What can I help you with stranger?

	NPC 2(Part 2): So, I see you spoke with NPC 1, out with it then.

	NPC 1(Part 2): Thank you for your help, what can I sell you?

	NPC 3(Part 1): What are you interested in today?
	*/

	TalkingDialogueBox* pBox = NULL;
	npc_1_part_1 = new DialogueSequence();
	pBox = new TalkingDialogueBox();
	pBox->SetupDialogueBox("If you'd like to purchase spells, I need you to do me a favor...\nI need you to kill NPC 2!", "NPC 1", "resources/talkbox.png", LITTLE_FONT);
	npc_1_part_1->m_vDialogueBoxes.push_back(pBox);

	npc_2_part_1 = new DialogueSequence();
	pBox = new TalkingDialogueBox();
	pBox->SetupDialogueBox("What can I help you with stranger?", "NPC 2", "resources/talkbox.png", LITTLE_FONT);
	npc_2_part_1->m_vDialogueBoxes.push_back(pBox);
	pBox = new TalkingDialogueBox();
	pBox->SetupDialogueBox("So, I see you spoke with NPC 1, out with it then.", "NPC 2", "resources/talkbox.png", LITTLE_FONT);
	npc_2_part_1->m_vDialogueBoxes.push_back(pBox);

	npc_1_part_2 = new DialogueSequence();
	pBox = new TalkingDialogueBox();
	pBox->SetupDialogueBox("Thank you for your help, what can I sell you?", "NPC 1", "resources/talkbox.png", LITTLE_FONT);
	npc_1_part_2->m_vDialogueBoxes.push_back(pBox);

	npc_3_part_1 = new DialogueSequence();
	pBox = new TalkingDialogueBox();
	pBox->SetupDialogueBox("What are you interested in today?", "NPC 3", "resources/talkbox.png", LITTLE_FONT);
	npc_3_part_1->m_vDialogueBoxes.push_back(pBox);
}